package com.sz.biz.logistics.ord.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Function:第一个供应商发送的货物的数据后，要保存用的dto信息
 * Author: hpeng.wang. <br>
 * Date: 2017-07-27 16:14:00.
 */
public class OrdTrackingTransDto {
    private Integer originalId=0;
    private String waybillNo;
    private String code;
    private Integer status;
    private Integer supplierId;
    private BigDecimal totalWeight;
    private String totalWeightUnit;
    private String trackMessage;
    private Date messageTime;
    private List<OrdTrackingTransSubOrderDto> subOrder =new ArrayList<>();

    public Integer getOriginalId() {
        return originalId;
    }

    public void setOriginalId(Integer originalId) {
        this.originalId = originalId;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public BigDecimal getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(BigDecimal totalWeight) {
        this.totalWeight = totalWeight;
    }

    public String getTotalWeightUnit() {
        return totalWeightUnit;
    }

    public void setTotalWeightUnit(String totalWeightUnit) {
        this.totalWeightUnit = totalWeightUnit;
    }

    public String getTrackMessage() {
        return trackMessage;
    }

    public void setTrackMessage(String trackMessage) {
        this.trackMessage = trackMessage;
    }

    public Date getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(Date messageTime) {
        this.messageTime = messageTime;
    }

    public List<OrdTrackingTransSubOrderDto> getSubOrder() {
        return subOrder;
    }

    public void setSubOrder(List<OrdTrackingTransSubOrderDto> subOrder) {
        this.subOrder = subOrder;
    }


    public void addSubOrder(OrdTrackingTransSubOrderDto trackingTransSubOrderDto){
        this.subOrder.add(trackingTransSubOrderDto);
    }
}
